]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Emit signal when notifications are enabled/disabled
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 May 2015 19:27:59 +0000 (21:27 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 14 May 2015 13:14:52 +0000 (15:14 +0200)
Since the introduction of per-source notification policy in commit
098bd4509ba0, the NotificationPolicy::enable-changed signal has been
used to track the 'enable' setting. However as we never actually
emitted that signal, this never worked without a restart - oops.

https://bugzilla.gnome.org/show_bug.cgi?id=749279

js/ui/messageTray.js

index 4a949d4b0637890d0eabac957ce3c540db15ed26..e0d63448f55a79b2eff73b8622280b79ff8a4519 100644 (file)
@@ -258,6 +258,8 @@ const NotificationApplicationPolicy = new Lang.Class({
 
     _changed: function(settings, key) {
         this.emit('policy-changed', key);
+        if (key == 'enable')
+            this.emit('enable-changed');
     },
 
     _canonicalizeId: function(id) {